package cn.tmpan.project.model;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
/**
 * <p>
 * 
 * </p>
 *
 * @author AutoGenerator
 */
@TableName("sys_cache_data_config")
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CacheDataConfig implements Serializable{
    /**
     * 分类 1-缓存 2-配置
     */
    @ApiModelProperty(notes = "分类 1-缓存 2-配置")
    private Integer type;
    @TableId
    private String cacheKey;
    /**
     * 缓存数据
     */
    @ApiModelProperty(notes = "缓存数据")
    private String cacheValue;
    /**
     * 配置值
     */
    @ApiModelProperty(notes = "配置值")
    private String configData;
    /**
     * 过期时间
     */
    @ApiModelProperty(notes = "过期时间")
    private Date expiredTime;
    @TableField( fill = FieldFill.INSERT)
    private Date createTime;
    @TableField( fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
